package com.example.blog.dto.picture;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class UpdatePictureDto {
    @NotBlank(message = "不为空")
    private String path;

    private MultipartFile file;

    private String description;
    @NotBlank(message = "不为空")
    private String type;

    @Min(value = 1,message = "最小值为1")
    private Long id;

    private Long uid;

    @Min(value = -1,message = "最小值为-1")
    @Max(value = 1,message = "最大值为1")
    private Long statue;
}
